Component({
    properties: {
        data: { // 父组件传入的表格数据
            type: Array,
            value: []
        }
    },
    data: {},
    methods: {
        onConfirm(event) {
            const {value, index} = event.detail;
            this.triggerEvent('callback', {
                act: '确定',
                val: value
            })
        },
        onCancel(event) {
            this.triggerEvent('callback', {
                act: '取消'
            })
        }
    },
    observers: {
        'data'(val) {
            // console.log(val)
        }
    }
});
